attribute vec4 position;
attribute vec4 color;
attribute vec3 normal;
attribute vec2 texcoord;


uniform mat4 ModeMatrix;
uniform mat4 ViewMatirx;
uniform mat4 ProjectionMatrix;
uniform mat4 NormalMatrix;

varying vec4 V_Color;
varying vec2 V_Texcoord;
varying vec3 V_Normal;

void main()
{
  V_Color=color;
  V_Texcoord=texcoord;
  V_Normal=mat3(NormalMatrix)*normal;                      //partialProject to woldProjection
  gl_Position = ProjectionMatrix*ViewMatirx*ModeMatrix*position;
}